import request from '@/utils/request'

// 查询中英文翻译列表
export function listTranslation(query) {
  return request({
    url: '/system/translation/list',
    method: 'get',
    params: query
  })
}

// 查询 详细
export function getTranslation(translationId) {
  return request({
    url: '/system/translation/' + translationId,
    method: 'get'
  })
}

// 新增 
export function addTranslation(data) {
  return request({
    url: '/system/translation',
    method: 'post',
    data: data
  })
}

// 修改 
export function updateTranslation(data) {
  return request({
    url: '/system/translation',
    method: 'put',
    data: data
  })
}

// 删除 
export function delTranslation(translationId) {
  return request({
    url: '/system/translation/' + translationId,
    method: 'delete'
  })
}
